Improve xml parameter entity parsing, and add a new ERT test.
authorChong Yidong <cyd@gnu.org>
Sun, 1 Jul 2012 07:17:05 +0000 (15:17 +0800)
committerChong Yidong <cyd@gnu.org>
Sun, 1 Jul 2012 07:17:05 +0000 (15:17 +0800)
commit35d974805072a35cfd378a39dbc6a3a2e95bd99e
tree81e76bc5ae6146615f822021e3df7fc0a324b82e
parenta431ad445d2d3622f37a7720208cfc3f94df4e60
Improve xml parameter entity parsing, and add a new ERT test.

* test/automated/xml-parse-tests.el: New file.

* lisp/xml.el (xml--parse-buffer): New function.  Move most of
xml-parse-region here.
(xml-parse-region): Copy region into a temporary buffer, since
parameter entity substitution requires changing buffer contents.
Use xml--parse-buffer.
(xml-parse-file): Use xml--parse-buffer.
(xml-parse-dtd): Make parameter entity substitution work right.
lisp/ChangeLog
lisp/xml.el
test/ChangeLog
test/automated/xml-parse-tests.el [new file with mode: 0644]